package yui.bss.demo.mgr.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import yui.bss.demo.dao.SysLinkDao;
import yui.bss.demo.dto.SysLinkDto;
import yui.bss.demo.mgr.SysLinkMgr;
import yui.bss.demo.vo.SysLinkVo;
import yui.comn.mybatisx.core.conditions.Wrapper;
import yui.comn.mybatisx.core.toolkit.EntityUtils;
import yui.comn.mybatisx.extension.mgr.impl.MgrImpl;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 系统用户
 * </p>
 *
 * @author yui
 */
@Service
public class SysLinkMgrImpl extends MgrImpl<SysLinkDao, SysLinkVo, SysLinkDto>
        implements SysLinkMgr {


    @Override
    public List<Map<String, Object>> selectLink(String sql) {
        return baseDao.selectLink(sql);
    }

    @Transactional
    @Override
    public int updateLink(String sql) {
        return baseDao.updateLink(sql);
    }

    @Transactional
    @Override
    public int insertLink(String sql) {
        return baseDao.insertLink(sql);
    }

    @Transactional
    @Override
    public int deleteLink(String sql) {
        return baseDao.deleteLink(sql);
    }
}
